package org.adw.launcher2.ld.secret.db;

import android.database.sqlite.SQLiteDatabase;

/*
 * Use to perform database operations in a transaction
 */
public abstract class DbBatchOperation {
	public abstract void doBatchInsert();
	
	public DbBatchOperation(SQLiteDatabase db) {
		db.beginTransaction();
		doBatchInsert();
		db.setTransactionSuccessful();
		db.endTransaction();
	}
}
